import { Layout } from '../constants'

export default {
  path: '/finance',
  name: 'finance',
  component: Layout,
  alwaysShow: true,
  hidden: false,
  meta: {
    icon: 'Money',
    noCache: false,
    requireAuth: true,
    title: '财务管理',
    sort: 3
  },
  children: [
    {
      path: '/receivable',
      name: 'receivable',
      alwaysShow: true,
      hidden: false,
      meta: {
        noCache: false,
        requireAuth: true,
        title: '应收账款'
      },
      children: [
        {
          path: '/receivableList',
          name: 'receivableList',
          component: () => import('@/view/finance/receivable/list/index.vue'),
          alwaysShow: true,
          hidden: false,
          meta: {
            noCache: false,
            requireAuth: true,
            title: '应收基础数据'
          }
        },
        {
          path: '/receivableChart',
          name: 'receivableChart',
          component: () => import('@/view/finance/receivable/chart/index.vue'),
          alwaysShow: true,
          hidden: false,
          meta: {
            noCache: false,
            requireAuth: true,
            title: '应收图表数据'
          }
        }
      ]
    },
    {
      path: '/initiation',
      name: 'initiation',
      component: () => import('@/views/finance/initiation/index.vue'),
      hidden: false,
      meta: {
        noCache: false,
        requireAuth: true,
        title: '项目立项'
      }
    }
  ]
}
